//
//  MusicDetailWebViewController.m
//  product_B
//
//  Created by zyc on 16/5/30.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "MusicDetailWebViewController.h"

@interface MusicDetailWebViewController ()
@property (nonatomic, strong)UIWebView *webView;

@end

@implementation MusicDetailWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = _name;
    self.navigationController.navigationBar.translucent = NO;
    _webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, kWidth, kHeight)];
    //    _webView.backgroundColor = [UIColor redColor];
    NSString *urlString = [NSString stringWithFormat:@"http://m.wufazhuce.com/music/%@",_myID];
    [_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlString]]];
    [self.view addSubview:_webView];
    
    
//    UIBarButtonItem *back = [[UIBarButtonItem alloc]initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(backAction:)];
//    self.navigationItem.leftBarButtonItem = back;

}

//- (void)backAction:(UIBarButtonItem *)sender{
//    [self.navigationController popViewControllerAnimated:YES];
//}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = NO;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
